package io.gitee.zhangbinhub.admin.oauth.po

import io.swagger.annotations.ApiModel
import io.swagger.annotations.ApiModelProperty
import org.noear.solon.validation.annotation.NotBlank

@ApiModel("应用配置参数")
data class ApplicationPo(
    @ApiModelProperty(name = "应用ID")
    var id: String? = null,
    @ApiModelProperty(name = "应用名称", required = true)
    @field:NotBlank(message = "应用名称不能为空")
    var appName: String? = null,
    @ApiModelProperty(name = "权限范围，多个权限“,”分隔")
    var scope: String? = null,
    @ApiModelProperty(name = "应用标识")
    var identify: String? = null,
    @ApiModelProperty(name = "token 有效期，单位秒", required = true)
    var accessTokenValiditySeconds: Int = 86400,
    @ApiModelProperty(name = "refresh token 有效期，单位秒", required = true)
    var refreshTokenValiditySeconds: Int = 2592000
)
